package com.hmall.common.feign;

import com.hmall.common.pojo.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient("userservice")
public interface UserServiceFeign {

    @GetMapping("/address/{id}")
    Address findAddressById(@RequestHeader(name = "authorization") String userID, @PathVariable("id") Long id);
}
